package top.xiaoqiannb.shapelessdao.block.listener;

import top.xiaoqiannb.shapelessdao.init.ShapelessdaoModBlockEntities;
import top.xiaoqiannb.shapelessdao.block.renderer.QimenzhenfaITileRenderer;
import top.xiaoqiannb.shapelessdao.block.renderer.QimenzhenfaIITileRenderer;
import top.xiaoqiannb.shapelessdao.ShapelessdaoMod;

import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.client.event.EntityRenderersEvent;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;

@Mod.EventBusSubscriber(modid = ShapelessdaoMod.MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public class ClientListener {
	@OnlyIn(Dist.CLIENT)
	@SubscribeEvent
	public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) {
		event.registerBlockEntityRenderer(ShapelessdaoModBlockEntities.QIMENZHENFA_II.get(), context -> new QimenzhenfaIITileRenderer());
		event.registerBlockEntityRenderer(ShapelessdaoModBlockEntities.QIMENZHENFA_I.get(), context -> new QimenzhenfaITileRenderer());
	}
}
